//
//  DatePickerView.h
//  cafe
//
//  Created by 尹桥印 on 15/5/29.
//  Copyright (c) 2015年 长沙市岳麓区立早网络科技有限公司. All rights reserved.
//

#import <UIKit/UIKit.h>

typedef NS_ENUM(NSUInteger, DatePickeResultType) {
    DatePickeResultType1,
    DatePickeResultType2,
};
@class DatePickerView;
@protocol DatePickerViewDelegate <NSObject>

@optional
-(void)datePickerValueChange:(DatePickerView *)pickerView resultStr:(NSString *)dateStr;

@end

@interface DatePickerView : UIView
@property (nonatomic, weak) UIView *view;
@property (nonatomic, weak) id<DatePickerViewDelegate> delegate;
@property (weak, nonatomic) IBOutlet UIDatePicker *datePicker;
@property (nonatomic, assign) DatePickeResultType resultType;

+(instancetype)datepicker;
@end
